<?php
error_reporting(E_ALL ^ E_NOTICE);
ini_set('display_errors', 1);
require_once "../Application/library/Zend/Registry.php";
set_include_path('.' . PATH_SEPARATOR . '../Application/library/'
					 . PATH_SEPARATOR . '../'
					 . PATH_SEPARATOR . '../Application/modules/'
					 . PATH_SEPARATOR . get_include_path());

define ('_LOCAL_HOST', 'local_host');

//DB connect
if (false !== strpos($_SERVER['HTTP_HOST'], _LOCAL_HOST)) {
	// local
	define ('_DB_ADAPTER', 'PDO_MYSQL');
	define ('_DB_HOST', 'localhost');
	define ('_DB_DATABASE', 'local_database');
	define ('_DB_USERNAME', 'local_username');
	define ('_DB_PASSWORD', '');
	define ('_DB_TABLE_PREFIX', '');	//prefix to be prepended to the table names
	define ('_DB_PORT', '3306');
} else {
	// production
	define ('_DB_ADAPTER', 'PDO_MYSQL');
	define ('_DB_HOST', 'live_host');
	define ('_DB_DATABASE', 'live_database');
	define ('_DB_USERNAME', 'live_username');
	define ('_DB_PASSWORD', 'live_password');
	define ('_DB_TABLE_PREFIX', '');
}

define ('_APP_URL', 'http://'.$_SERVER['HTTP_HOST'].'');
define ('_APP_ABSOLUTE_PATH', dirname(getcwd()));
define ('_DB_PROFILER', TRUE);
define ('_DEFAULT_LANGUAGE', 'ro');

if (false !== strpos($_SERVER['HTTP_HOST'], _LOCAL_HOST)) {
	// local
	define ('_APP_ENV', 'development');
	define ('_DEBUG_CONSOLE', true);
} else {
	// production
	define ('_APP_ENV', 'prod');
	define ('_DEBUG_CONSOLE', false);
}

//Zend_Registry::set('PHOTO_IMAGE_REF', 8);

//Pentru URL rewrite cu Zend Route
define('_USE_ROUTES', TRUE);

//require_once 'Zend/Mail.php';
//require_once 'Zend/Mail/Transport/Smtp.php';
//Zend_Mail::setDefaultTransport(new Zend_Mail_Transport_Smtp());